/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package albumdownloader.domain.entity;

import java.util.List;

/**
 *
 * @author max.m.yuan@gmail.com
 */
public class Page<T> {
    private final int maxPage;
    private final int pageIndex;
    private final List<T> data;

    public Page(int maxPage, int pageIndex, List<T> data) {
        this.maxPage = maxPage;
        this.pageIndex = pageIndex;
        this.data = data;
    }

    public int getMaxPage() {
        return maxPage;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public List<T> getData() {
        return data;
    }
}
